package com.sxbbc.common.basics.utils.encrypts.pwd;

/**
 * 会员加密密码
 * @author arno
 *
 */
public class PwdEncode {
	
	private static PwdEncode pwdEncode = null;

	public static PwdEncode getInstance() {
		if (pwdEncode == null) {
			synchronized (PwdEncode.class) {
				if (pwdEncode == null) {
					pwdEncode = new PwdEncode();
				}
			}
		}
		return pwdEncode;
	}

	/**
	 * 加密密码
	 * @param pwd
	 * @return
	 */
	public static String encodePwd(String pwd) {
		String p=Encode.getInstance().encode(pwd);
		p=Encode.getInstance().encode(p).toLowerCase();
		return p;
	}
}
